package com.ssy.lingxi.product.model.request.material;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 查询物料是否为配置流程配置
 * @author 彭冬冬
 * @version 2.0.0
 * @date 2022/3/28 17:36
 */
public class MaterialProcessRelVO implements Serializable {
    private static final long serialVersionUID = 7537554551141121916L;

    /**
     * 物料id
     */
    private Long materialId;

    /**
     * 物料分组id
     */
    private Long materialGroupId;

    /**
     * 查询流程类型 枚举值
     * 1 - 新增物料流程
     * 2 - 变更/启用物料流程
     */
    @NotNull(message = "请填写查询流程类型，枚举值1~2")
    @Min(value = 1, message = "请填写查询流程类型，枚举值1~2")
    @Max(value = 2, message = "请填写查询流程类型，枚举值1~2")
    private Integer processType;

    public Long getMaterialId() {
        return materialId;
    }

    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }

    public Long getMaterialGroupId() {
        return materialGroupId;
    }

    public void setMaterialGroupId(Long materialGroupId) {
        this.materialGroupId = materialGroupId;
    }

    public Integer getProcessType() {
        return processType;
    }

    public void setProcessType(Integer processType) {
        this.processType = processType;
    }
}
